package thinking.in.spring.boot.example.enable;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.Configuration;

/**
 * @author : wenchao.long
 * @date : Created in 2025-06-06 下午 8:34 周五
 * @description :
 */
@Configuration
@EnableServer(type = Server.Type.HTTP)
public class EnableServerBootstrap {

	public static void main(String[] args) {
		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();
		context.register(EnableServerBootstrap.class);
		context.refresh();
		Server server = context.getBean(Server.class);
		server.start();
		server.stop();
		context.close();
	}
}
